all: ex1_server sc

clean:
	rm ex1_server stackServer.o sc stackClient.o stack.o

ex1_server: stackServer.o stack.o
	g++ -o ex1_server stackServer.o stack.o -lpthread

stackServer.o: stackServer.cpp
	g++ -Wall -lpthread -ltbb -c stackServer.cpp

stack.o:
	g++ -Wall -lpthread -ltbb -c Libs/stack.cpp

sc: stackClient.o
	g++ -o sc stackClient.o -lpthread

stackClient.o: stackClient.cpp
	g++ -Wall -lpthread -ltbb -c stackClient.cpp
